.gallery-section {
  padding: 120px 0;
  background: #f5f5f7;

  .gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;

    .gallery-header {
      text-align: center;
      margin-bottom: 4rem;

      h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 1rem 0;
        letter-spacing: -0.02em;
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
      }

      p {
        font-size: 1.1rem;
        color: #86868b;
        margin: 0;
        max-width: 500px;
        margin: 0 auto;
        font-weight: 400;
      }
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;

      .gallery-item {
        position: relative;
        cursor: pointer;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;

        .item-image {
          position: relative;
          height: 300px;
          overflow: hidden;

          .image-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, 
              hsl(240, 60%, 70%) 0%,
              hsl(260, 60%, 65%) 25%,
              hsl(280, 60%, 70%) 50%,
              hsl(300, 60%, 65%) 75%,
              hsl(320, 60%, 70%) 100%
            );
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: transform 0.3s ease;

            .image-title {
              color: white;
              font-size: 1.5rem;
              font-weight: 600;
              text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            }

            &::before {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
              animation: shimmer 4s infinite;
            }
          }

          .item-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
            display: flex;
            align-items: flex-end;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;

            .overlay-content {
              color: white;

              h4 {
                font-size: 1.2rem;
                font-weight: 600;
                margin: 0 0 0.5rem 0;
              }

              .category {
                font-size: 0.9rem;
                color: #a0d8ff;
                margin: 0 0 0.3rem 0;
              }

              .description {
                font-size: 0.9rem;
                color: #e2e8f0;
                margin: 0;
                opacity: 0.9;
              }
            }
          }
        }

        &:hover {
          .item-image {
            .image-placeholder {
              transform: scale(1.1);
            }

            .item-overlay {
              opacity: 1;
            }
          }
        }

        // 为不同的项目设置不同的渐变色
        &:nth-child(1) .item-image .image-placeholder {
          background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
        }

        &:nth-child(2) .item-image .image-placeholder {
          background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
        }

        &:nth-child(3) .item-image .image-placeholder {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        &:nth-child(4) .item-image .image-placeholder {
          background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        &:nth-child(5) .item-image .image-placeholder {
          background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        &:nth-child(6) .item-image .image-placeholder {
          background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }
      }
    }
  }

  @keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
  }

  @media (max-width: 768px) {
    padding: 80px 0;

    .gallery-container {
      padding: 0 1rem;

      .gallery-header {
        h2 {
          font-size: 2rem;
        }

        p {
          font-size: 1rem;
        }
      }

      .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;

        .gallery-item {
          .item-image {
            height: 250px;
          }
        }
      }
    }
  }
}